package org.tom.petcart.domain;

import lombok.Data;
import org.tom.basic.domain.BaseDomain;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class ShopCart extends BaseDomain implements Serializable {
    // 加入购物车
    public static final int GO_SHOPCART = 0;
    // 购物车中删除该商品
    public static final int REMOVE_SHOPCART = -1;
    // 购买该商品
    public static final int BUY_SHOPCART = 1;

    public static final String SHOPCART_LIST = "shopcartlisr";

    private String resource;
    private Integer count;
    private Long shop_id;
    private Long logininfo_id;
    private BigDecimal money;
    private Long pet_id;
    // 默认状态为加入购物车
    private Integer state = GO_SHOPCART;

}
